package community.hospital.entity.request;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author：ydj
 * @Date：2023/1/20 16:34
 */
@Data
public class UpdatePasswordRequest implements Serializable {
    private static final long serialVersionUID = 3926120003231073098L;
    @NotNull("id不能为null")
    private Long id;
    @NotBlank(message = "密码不能为空")
    @Min(value = 6,message = "密码长度不能低于6位")
    @Max(value = 16,message = "密码长度不能多于16位")
    private String password;

}
